<?php
	$username=$_GET['username'];
	$password=$_GET['password'];
	
	$conn=mysqli_connect("127.0.0.1","root","","xiaomi"); 
	
	$sql = "SELECT * FROM `user` WHERE `username`='$username' AND `password`='$password'";
	$result=mysqli_query($conn,$sql);
	$arr = mysqli_fetch_all($result,MYSQLI_ASSOC);
	if($arr){
		echo 1;
	}else{
		echo 0;
	}
	// 断开链接
	mysqli_close($conn);
?>